<link href="__PUBLIC__/plugins/fitui/tablegrid.css" rel="stylesheet">
<script src="__PUBLIC__/js/mp/format.js"></script>
<script src="__PUBLIC__/plugins/fitui/tablegrid.js"></script>
<script src="__PUBLIC__/js/mp/wx_pay.js"></script>
<script>
var Param = <?php echo json_encode( $param ) ?> ;
$(function(){
  WxPay.init(<?php echo json_encode( $config ) ?>);
});

</script>

<div class="page-content">
  <ol class="breadcrumb">
    <li><a href="<?php echo $home_url ?>">首页</a></li>
    <li class="active"><?php echo $module_name ?></li>
  </ol>
  <div class="page-content-inner">
    <!-- read_modal -->
    <div class="portlet blue" id="read_modal">
      <!-- portlet-title -->
      <div class="portlet-title">
        <div class="caption"> <i class="fa fa-comments "></i> <?php echo $module_name ?> </div>
        <div class="tools">
        <?php if ( $opt_data == 1 || in_array( '添加' , $opt_data ) ) : ?>
          <a href="#" class="toolbtn add load_add_modal_btn" data-toggle="tooltip" data-placement="top" title="新增"></a>
        <?php endif ; ?>
        </div>
      </div><!-- end portlet-title -->
      <div class="portlet-body ">
        <!-- table grid -->
        <div class="table-responsive">
          <table id="data_table" class="table table-striped table-hover table-condensed">
            <thead>
              <tr>
                <th width="80" data-field="id"  >ID</th> 
<th width="80" data-field="mer_id"  >商户ID</th> 
<th width="80" data-field="type"  >支付类型</th> 
<th width="80" data-field="billno"  >订单号</th> 
<th width="80" data-field="openid"  >收款openid</th> 
<th width="80" data-field="amount"  >金额(分)</th> 
<th width="80" data-field="send_data"  >发送内容</th> 
<th width="80" data-field="response_data"  >接收内容</th> 
<th width="80" data-field="create_time"  ></th> 

                <?php if ( $opt_data == 1 || in_array( '编辑' , $opt_data ) ) : ?><th width="80" data-formatter="opt_edit"></th><?php endif ; ?>
                <?php if ( $opt_data == 1 || in_array( '删除' , $opt_data ) ) : ?><th width="80" data-formatter="opt_delete"></th><?php endif ; ?>
                <th>&nbsp;</th>
              </tr>
            </thead>
          </table>
        </div><!-- end table -->
      </div>
    </div> <!-- end portlet read_modal -->
    
    <!-- add_edit_modal  -->
    <div class="portlet" id="add_edit_modal" style="display:none;">
      <div class="portlet-title">
          <div class="caption">
              <i class="fa fa-cogs"></i>
              <span id="action_label"></span>
              <?php echo $module_name ?>
          </div>
      </div>
      <div class="portlet-body ">
          <form id="submit_form" class="form-horizontal">
            <div class="form-group">
              <label class="col-sm-3 control-label">ID</label>
              <div class="col-sm-7">
                <input name="id" placeholder="ID" data-valid="required" data-tips="请填写正确的ID" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">商户ID</label>
              <div class="col-sm-7">
                <input name="mer_id" placeholder="商户ID" data-valid="required" data-tips="请填写正确的商户ID" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">支付类型</label>
              <div class="col-sm-7">
                <input name="type" placeholder="支付类型" data-valid="required" data-tips="请填写正确的支付类型" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">订单号</label>
              <div class="col-sm-7">
                <input name="billno" placeholder="订单号" data-valid="required" data-tips="请填写正确的订单号" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">收款openid</label>
              <div class="col-sm-7">
                <input name="openid" placeholder="收款openid" data-valid="required" data-tips="请填写正确的收款openid" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">金额(分)</label>
              <div class="col-sm-7">
                <input name="amount" placeholder="金额(分)" data-valid="required" data-tips="请填写正确的金额(分)" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">发送内容</label>
              <div class="col-sm-7">
                <input name="send_data" placeholder="发送内容" data-valid="required" data-tips="请填写正确的发送内容" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label">接收内容</label>
              <div class="col-sm-7">
                <input name="response_data" placeholder="接收内容" data-valid="required" data-tips="请填写正确的接收内容" type="text" class="form-control" >
              </div>
            </div> 
<div class="form-group">
              <label class="col-sm-3 control-label"></label>
              <div class="col-sm-7">
                <input name="create_time" placeholder="" data-valid="required" data-tips="请填写正确的" type="text" class="form-control" >
              </div>
            </div> 

            <hr>
            <div class="row">
                <div class="col-md-12" style="text-align:center">
                    <button class="btn btn-default btn-lg " id="add_edit_close_btn" type="button"><i class="fa fa-arrow-left"></i> 返回</button>
                    <button class="btn btn-danger btn-lg " id="submit_btn" type="button"><i class="fa fa-edit"></i> 提交</button>
                </div>
            </div>
          </form>
      </div>
    </div> <!-- end portlet add_edit_modal -->
  </div><!-- end page-content-inner -->
</div>